import { createApp } from 'vue'
//引入element-plus
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
//引用icon图标
import {User,OfficeBuilding,Suitcase,Tools,Van,ChatDotRound,Tickets,Menu,CaretBottom,Files,ColdDrink,Lightning,Odometer,Document,Monitor} from '@element-plus/icons-vue'
//引入路由
import router from './router/index'
//引入axios
import axios from 'axios'
import VueAxios from 'vue-axios'
//引入vuex
import store from './store'
import App from './App.vue'

// axios.defaults.baseURL='/api'
const app=createApp(App)
app.use(ElementPlus,{locale:zhCn})
app.use(router)
app.use(store)
app.use(VueAxios,axios);

app.component('User',User)
app.component('OfficeBuilding',OfficeBuilding)
app.component('Suitcase',Suitcase)
app.component('Tools',Tools)
app.component('Van',Van)
app.component('ChatDotRound',ChatDotRound)
app.component('Tickets',Tickets)
app.component('Menu',Menu)
app.component('CaretBottom',CaretBottom)
app.component('Files',Files)
app.component('Lightning',Lightning)
app.component('ColdDrink',ColdDrink)
app.component('Odometer',Odometer)
app.component('Document',Document)
app.component('Monitor',Monitor)


app.mount('#app')
